﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class DatabaseExportBarcodes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            ProxyWrapper.BarCode.BarCodeGeneratorSoapClient client = new ProxyWrapper.BarCode.BarCodeGeneratorSoapClient();

        
          var buf = client.Code39("Dharmendra", 18, true, "Dharmendra");
           // buf = Encoding.Convert(Encoding.GetEncoding("iso-8859-1"), Encoding.UTF8, buf);
            string tempString = Encoding.Unicode.GetString(buf);
            imgCtrl.ImageUrl = "data:image/gif;base64," + tempString;
        }
        catch (Exception)
        {
            
            throw;
        }
    }
}